import i18n from '@/locales/index'
const { t } = i18n.global

export const columns = [
  { title: t('common.sequenceNo'), dataIndex: 'staffNo', key: 'staffNo', align: 'center', width: 60,
  customRender: ({ index }) => {
    return index + 1
  }},
  { title: t('basicData.jobNo'), dataIndex: 'staffNo', key: 'staffNo', align: 'center', width: 120 },
  { title: t('basicData.name'), dataIndex: 'staffName', key: 'staffName', align: 'center', width: 120 },
  { title: t('basicData.styleNo'), dataIndex: 'styleNo', key: 'styleNo', align: 'center', width: 120 },
  { title: t('basicData.styleNa'), dataIndex: 'styleName', key: 'styleName', align: 'center', width: 120 },
  { title: t('hangManage.makeNo'), dataIndex: 'moNo', key: 'moNo', align: 'center', width: 120 },
  { title: t('hangManage.bedNo'), dataIndex: 'lot', key: 'lot', align: 'center', width: 120 },
  { title: t('basicData.processNo'), dataIndex: 'processNo', key: 'processNo', align: 'center', width: 120 },
  { title: t('basicData.processNames'), dataIndex: 'processName', key: 'processName', align: 'center', width: 120 },
  { title: t('report.outputNumber'), dataIndex: 'quantity', key: 'quantity', align: 'center', width: 120 },
  { title: t('hangManage.returnNumber'), dataIndex: 'reworkQuantity', key: 'reworkQuantity', align: 'right', width: 120 },
  { title: t('other.totalNo'), dataIndex: 'totalQuantity', key: 'totalQuantity', align: 'center', width: 120, fixed: 'right' },
]